if __name__=="__main__":
    in_ls=list(map(lambda x:int(x),input().strip().split()))
    in_ls.sort()
    in_ls.remove(345)
    print(" ".join(map(str,in_ls)))
